@layout("/common/_container.html",{js:["/assets/manager/flowLowerLevelOrder/flowLowerLevelOrder.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">订单记录管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="orderCode" class="layui-input" type="text" placeholder="订单号"/>
                            </div>
                            <div class="layui-inline">
                                <input id="name" class="layui-input" type="text" placeholder="用户名"/>
                            </div>
                            <div class="layui-inline">
                                <input id="phone" class="layui-input" type="text" placeholder="联系电话"/>
                            </div>
                            <div class="layui-inline">
                                <select class="layui-select" id="orderFrom">
                                    <option value="">全部</option>
                                    <option value="支付宝小程序">支付宝小程序</option>
                                    <option value="百度小程序">百度小程序</option>
                                    <option value="微信小程序">微信小程序</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <select class="layui-select" id="orderType">

                                </select>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="btnReset" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>重置</button>
                                <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="flowOrderTable" lay-filter="flowOrderTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    {{# if(d.refundStatus == 1&&d.orderStatus<4){ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="refundOrder">退款申请</a>
    {{# } }}
    {{# if(d.orderStatus == 0){ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="confirmOrder">处理中</a>
    {{# } }}
    {{# if(d.orderStatus == 1){ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="canPayOrder">确认订单</a>
    {{# } }}
    {{# if(d.orderStatus == 2){ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="payOrder">支付成功</a>
    {{# } }}
    {{# if(d.orderStatus == 3){ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="serviceSuccess">确认订单完成</a>
    {{# } }}
    {{# if(d.orderStatus != 4 && d.orderStatus != 5 && d.orderStatus != 6){ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="canselOrder">取消订单</a>
    {{# } }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">订单明细</a>
</script>
@}